home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
misc
/
emu
/
ATUtilities.lha
/
ATUtilities
/
BASIC
/
3D.BAS
next >
Wrap
BASIC Source File
|
2000-09-26
|
623b
|
31 lines
screen 12
color 3
call DrawQ4(150,400, 200,200,100)
end
sub DrawQ4(x,y,w,h,d) static
call DrawLine(x,y,0,x+w,y,0)
call DrawLine(x,y,0,x,y,d)
call DrawLine(x,y,0,x,y-h,0)
call DrawLine(x+w,y,0,x+w,y-h,0)
call DrawLine(x+w,y,0,x+w,y,d)
call DrawLine(x,y-h,0,x+w,y-h,0)
call DrawLine(x,y,d,x+w,y,d)
call DrawLine(x+w,y-h,0,x+w,y-h,d)
call DrawLine(x,y-h,0,x,y-h,d)
call DrawLine(x+w,y-h,d,x+w,y,d)
call DrawLine(x,y-h,d,x,y,d)
call DrawLine(x,y-h,d,x+w,y-h,d)
end sub
sub DrawLine(x1,y1,z1, x2,y2,z2) static
xa=x1+z1
ya=y1-z1
xb=x2+z2
yb=y2-z2
line (xa,ya)-(xb,yb)
end sub